package com.hos.db.entity.ill;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hos.utile.StringUtile;

/**
 * 病情选项
 * Created by guom on 2019/3/10.
 */
public class IllOptionEntity {
    //类别id
    private String categoryId;
    //类别名称
    private String categoryName;
    @JsonIgnore
    private String categoryValue;
    //类别值
    private String[] categoryValues;

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getCategoryValue() {
        return categoryValue;
    }

    public void setCategoryValue(String categoryValue) {
        this.categoryValue = categoryValue;
    }

    public String[] getCategoryValues() {
        if (categoryValues == null && !StringUtile.isEmpty(categoryValue)) {
            categoryValues = categoryValue.split("、");
        }
        return categoryValues;
    }

    public void setCategoryValues(String[] categoryValues) {
        this.categoryValues = categoryValues;
    }
}
